let arr = [1,2,3,4,5, , ,]

let istrue = false

for(var i = 0;i<arr.length;i++){
    if(!arr.hasOwnProperty(i)){
        istrue = true
    }
}

console.log(istrue)